package com.wxxymakers.cklabrecruit.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxxymakers.cklabrecruit.entity.enum_.RegStatus;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@Data
public class EmailRecord implements Serializable {
    public EmailRecord() { }

    public EmailRecord(Integer emailId, String title, RegStatus status, Integer pnum, String content) {
        this.emailId = emailId;
        this.title = title;
        this.status = status;
        this.pnum = pnum;
        this.content = content;
    }

    private Integer id;

    private Integer emailId;

    private String title;

    private RegStatus status;

    private Integer pnum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date datetime;

    private String content;

    private static final long serialVersionUID = 1L;
}